import { ref } from 'vue'

const globalLoading = ref(false)

export const useGlobalLoading = () => {
  const setLoading = (value: boolean) => {
    globalLoading.value = value
  }

  return {
    loading: globalLoading,
    setLoading
  }
} 